﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ePlanet.ArchiveMange.Services
{
    public interface IArchiveBase
    {
        /// <summary>
        /// 保存主数据
        /// </summary>
        /// <param name="ds"></param>
        /// <returns></returns>
        bool SaveData(DataSet ds);
        /// <summary>
        /// 保存附件数据
        /// </summary>
        /// <param name="dt_Attach"></param>
        /// <param name="objectTableName"></param>
        /// <param name="objectID"></param>
        /// <param name="DBHelperString"></param>
        /// <returns></returns>
        bool SaveAttach(DataTable dt_Attach, string objectTableName, string objectID, string DBHelperString);

        /// <summary>
        /// 获取附件内容
        /// </summary>
        /// <param name="dataID"></param>
        /// <param name="DBHelperString"></param>
        /// <returns></returns>
        byte[] GetAttachContentByID(string dataID, string DBHelperString);

        /// <summary>
        /// 获取附件
        /// </summary>
        /// <param name="ObjectID"></param>
        /// <param name="DBHelperString"></param>
        /// <returns></returns>
        DataSet GetAttach(string ObjectID, string DBHelperString);

        /// <summary>
        /// 是否相同的密级
        /// </summary>
        /// <param name="dataIDList"></param>
        /// <returns></returns>
        bool IsSameSecret(List<Guid> dataIDList);

        /// <summary>
        /// 根据主键删除数据
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        bool DeleteData(string key);
    }
}
